package com.pig4cloud.pigx.contract.constant;

/**
 * OrderExecutor错误信息
 *
 * @date 2022/8/19 19:57
 */
public interface OrderExecutorErrorMsg {
	/**
	 * OrderInitializer报错日志信息前缀
	 */
	String ORDER_INIT_ERROR_PREFIX = "OrderExecutor-OrderInitializer-error：";
	/**
	 * OrderMatcher报错日志信息前缀
	 */
	String ORDER_MATCH_ERROR_PREFIX = "OrderExecutor-OrderMatcher-error：";
	/**
	 * OrderCanceler报错日志信息前缀
	 */
	String ORDER_CANCEL_ERROR_PREFIX = "OrderExecutor-OrderCanceler-error：";
	/**
	 * TradeHandler报错日志信息前缀
	 */
	String TRADE_NEW_ERROR_PREFIX = "OrderExecutor-TradeHandler-error：";
	/**
	 * PositionLiquidator报错日志信息前缀
	 */
	String POSITION_LIQUIDATE_ERROR_PREFIX = "PositionExecutor-PositionLiquidator-error：";
	/**
	 * PositionMultipleHandler报错日志信息前缀
	 */
	String POSITION_MULTIPLE_HANDLE_ERROR_PREFIX = "PositionExecutor-PositionMultipleHandler-error：";

	/**
	 * OrderInitializer报错日志信息
	 */
	String ORDER_INIT_ERROR = ORDER_INIT_ERROR_PREFIX + "{}";
	/**
	 * OrderMatcher报错日志信息
	 */
	String ORDER_MATCH_ERROR = ORDER_MATCH_ERROR_PREFIX + "{}";
	/**
	 * OrderCanceler报错日志信息
	 */
	String ORDER_CANCEL_ERROR = ORDER_CANCEL_ERROR_PREFIX + "{}";
	/**
	 * TradeHandler报错日志信息
	 */
	String TRADE_NEW_ERROR = TRADE_NEW_ERROR_PREFIX + "{}";
	/**
	 * TradeHandler报错日志信息
	 */
	String POSITION_LIQUIDATE_ERROR = POSITION_LIQUIDATE_ERROR_PREFIX + "{}";
	/**
	 * PositionMultipleHandler报错日志信息前缀
	 */
	String POSITION_MULTIPLE_HANDLE_ERROR = POSITION_MULTIPLE_HANDLE_ERROR_PREFIX + "{}";

	/**
	 * 未能匹配到订单处理器异常
	 */
	String ORDER_NOT_MATCH = "无法识别的订单信息";
	/**
	 * 未能匹配到成交记录处理器异常
	 */
	String TRADE_NOT_MATCH = "无法识别的成交记录信息";
	/**
	 * 未能匹配到成交记录处理器异常
	 */
	String POSITION_NOT_MATCH = "无法识别的仓位信息";

	/**
	 * OrderInitializer未能匹配
	 */
	String ORDER_INIT_NOT_MATCH = ORDER_INIT_ERROR_PREFIX + ORDER_NOT_MATCH;
	/**
	 * OrderMatcher未能匹配
	 */
	String ORDER_MATCH_NOT_MATCH = ORDER_MATCH_ERROR_PREFIX + ORDER_NOT_MATCH;
	/**
	 * OrderCanceler未能匹配
	 */
	String ORDER_CANCEL_NOT_MATCH = ORDER_CANCEL_ERROR_PREFIX + ORDER_NOT_MATCH;
	/**
	 * TradeHandler未能匹配
	 */
	String TRADE_HANDLE_NOT_MATCH = TRADE_NEW_ERROR_PREFIX + TRADE_NOT_MATCH;
	/**
	 * PositionLiquidator未能匹配
	 */
	String POSITION_LIQUIDATE_NOT_MATCH = POSITION_LIQUIDATE_ERROR_PREFIX + POSITION_NOT_MATCH;
	/**
	 * PositionMultipleHandler未能匹配
	 */
	String POSITION_MULTIPLE_HANDLER_NOT_MATCH = POSITION_MULTIPLE_HANDLE_ERROR_PREFIX + POSITION_NOT_MATCH;
}
